﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true"
    CodeBehind="DanhSachDanhMuc.aspx.cs" Inherits="GreenLife.Admin.DanhSachDanhMuc" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form runat="server">
    <asp:Repeater ID="listCategory" runat="server" OnItemCommand="cpRepeaterCate_ItemDataBound">
        <HeaderTemplate>
            <table>
                <thead style="color: Green;">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="ID"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="Type"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="Description"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text="Update"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text="Detele"></asp:Label>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("CategoryID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbName" runat="server" Text='<%# Bind("CategoryName") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbType" runat="server" Text='<%# Bind("CategoryType") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label TextMode="MultiLine" Width="300px" Wrap="false" ID="lbDesc" runat="server"
                            Text='<%# Bind("CategoryDescription") %>'></asp:Label>
                    </td>
                    <td>
                        <a href='ChinhSuaDanhMuc.aspx?idc=<%#DataBinder.Eval(Container.DataItem ,"CategoryID")%>'>
                            Update</a>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkDelete" CommandName="delete" OnClientClick='javascript:return confirm("Are you sure you want to delete?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>' runat="server">Delete</asp:LinkButton>
                    </td>
                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" BackNextDisplay="HyperLinks"
        BackNextLinkSeparator="" BackNextLocation="Left" BackText="" LabelText="" LastText=""
        NextText="" PageNumbersDisplay="Numbers" PageNumbersSeparator="&nbsp;" PagingMode="QueryString"
        ResultsFormat="" ResultsLocation="Bottom">
    </cc1:CollectionPager>
    </form>
</asp:Content>
